/*
 * @Author: xiaosihan
 * @Date: 2025-10-25 10:00:00
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2025-10-25 10:00:00
 */
import Api from "./Api";

// 我的图片API
class MyImgApi extends Api {

    constructor() {
        super();
    }

    // 获取图片列表
    getMyImgList(params: {
        page: number;
        pageSize: number;
        search?: string;
        sortField?: string;
        sortOrder?: 'ascend' | 'descend';
    }) {
        return this._post("get_my_img_list", params);
    }

    // 删除图片
    deleteMyImg(id: number) {
        return this._post("del_my_img", { id });
    }

    // 写入图片（新增/更新）
    writeMyImg(data: any) {
        return this._post("write_my_img", data);
    }




}

const myImgApi = new MyImgApi();
export default myImgApi;